﻿// <com.woyouqiu.Copyright>
// --------------------------------------------------------------
// <copyright>上海有求网络科技有限公司 2015</copyright>
// <Solution>Vecen.BangChuang</Solution>
// <Project>Vecen.BangChuang.Application</Project>
// <FileName>IFavoriteAppService.cs</FileName>
// <CreateTime>2017-04-27 21:51</CreateTime>
// <Author>何苗</Author>
// <Email>hemiao@woyouqiu.com</Email>
// <log date="2017-04-27 21:51" version="00001">创建</log>
// --------------------------------------------------------------
// </com.woyouqiu.Copyright>

using System.Threading.Tasks;
using Abp.Application.Services;
using Abp.Application.Services.Dto;
using Vecen.BangChuang.BangChuang.Mall.Dtos;

namespace Vecen.BangChuang.BangChuang.Mall {
    /// <summary>
    /// 收藏相关
    /// </summary>
    public interface IFavoriteAppService: IApplicationService {

        /// <summary>
        /// 添加收藏
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task FavoriteAsync(FavoriteRequestDto input);

        /// <summary>
        /// 获得收藏的商品列表
        /// </summary>
        /// <returns></returns>
        Task<ListResultDto<FavoriteProductOutPut>> GetFavoriteProductsAsync();

        /// <summary>
        /// 获得收藏的课程列表
        /// </summary>
        /// <returns></returns>
        Task<ListResultDto<FavoriteClassOutPut>> GetFavoriteClassesAsync();


        /// <summary>
        /// 取消收藏
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task CancelAsync(int id);

        /// <summary>
        /// 取消收藏
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task CancelWithTypeAsync(FavoriteRequestDto input);
    }
}